package name.tp.modules.bom.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import name.tp.modules.bom.entity.BomInfo;
import name.tp.modules.bom.mapper.BomInfoMapper;
import name.tp.modules.bom.service.BomServiceI;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Created by Tp-wangwh on 2019-10-31.
 */
@Service
@Slf4j
@Transactional(readOnly =true)
public class BomServiceImpl extends ServiceImpl<BomInfoMapper,BomInfo> implements BomServiceI {
    /***
     *
     * @param bomInfoList
     * @param exceptionString
     */
    @Transactional(readOnly =false )
    public void insertFailItem(List<BomInfo> bomInfoList, String exceptionString){
        log.error("插入异常失败记录");
    }
}
